<template>
    <div>
        <Identify :identifyCode="identifyCode" @refresh="generateCode" />
    </div>
</template>

<script setup>
import { ref, onMounted } from 'vue';
import Identify from './ValidCode.vue';
import {identifyCode , generateCode } from './captcha.js'


//初始化验证码
onMounted(() => {
    generateCode();
});

</script>